<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
Route::any('/upload','StudentController@upload');
Route::any('/mail','StudentController@mail');
Route::any('/cache1','StudentController@cache1');
Route::any('/cache2','StudentController@cache2');



Route::any('error','StudentController@error');
Route::any('queue','StudentController@queue');
Route::resource('photos', 'PhotoController');
//水产学会相测试关数据
Route::group(
   ['prefix'=>'student'],function (){
    Route::any('index','StudentController@index');
    Route::any('getMessage','StudentController@getMessage');
    Route::any('setTmp','StudentController@setTmp');
    Route::any('setFishKind','StudentController@fishKind');
    Route::any('yzm','StudentController@yzm');
    Route::any('fishCate','StudentController@fishCate');
    Route::any('fishPrice','StudentController@fishPrice');
});